package com.haipumi.biz.impl;

import java.util.List;

import com.haipumi.beans.haipumi_databasetable;
import com.haipumi.biz.DatabaseBiz;
import com.haipumi.dao.DBHelper;

public class DatabaseBizImpl implements DatabaseBiz {

	DBHelper db=new DBHelper();
	@Override
	public List<haipumi_databasetable> findalltables() {
		String sql="show tables";
		List<haipumi_databasetable> tables=null;
		try {
			tables=db.finds(sql, null, haipumi_databasetable.class);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return tables;
	}

}
